namespace Nintest.Model
{
    using System;

    public class TraceEventArgs : EventArgs
    {
        private TraceEventArgs(TraceLevel level, DateTime utcTime, string message)
        {
            Level = level;
            UtcTime = utcTime;
            Message = message;
        }

        public TraceLevel Level { get; private set; }
        public DateTime UtcTime { get; private set; }
        public string Message { get; private set; }

        public static TraceEventArgs Create(TraceLevel level, string message)
        {
            return new TraceEventArgs(level, DateTime.UtcNow, message);
        }
    }
}